﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RadowCore.Models
{
    class TraceLogEntry
    {
        private List<LogEntry> trace;

        public List<LogEntry> Trace
        {
            get { return trace; }
            set { trace = value; }
        }

        internal LogEntry LogEntry
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }


        public TraceLogEntry()
        {
            trace = new List<LogEntry>();
        }

        public void AddLogEntry(LogEntry le)
        {
            trace.Add(le);
        }

        public LogEntry FindLogEntry(string p_ActivityID)
        {
            LogEntry result = trace.Find(
                delegate(LogEntry le)
                {
                    return le.ActivityID == p_ActivityID;
                }
            );

            return result;
        }

    }
}
